package com.muti.handle;

import org.springframework.messaging.Message;
import org.springframework.stereotype.Component;

/**
 * Author:yang
 * Date:2024-03-05 21:54
 * 发布-订阅处理器
 */
@Component
public class PublishSubHandle {

    public void handleMessage(Message<String> message) {
        // 处理发布-订阅消息的逻辑
        System.out.println("Handling publish-subscribe message: " + message.getPayload());
    }
}
